.mai-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.mai-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 28px;
}

.mai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 10px;
}

.mai-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mai-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.mai-card-image {
    height: 200px;
    overflow: hidden;
}

.mai-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mai-card:hover .mai-card-image img {
    transform: scale(1.05);
}

.mai-card-content {
    padding: 15px;
}

.mai-card-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mai-card-desc {
    color: #666;
    font-size: 14px;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px;
}

.mai-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mai-card-price {
    font-size: 20px;
    font-weight: bold;
    color: #ff6b6b;
}

.mai-card-button {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.mai-card-button:hover {
    background: #3e8e41;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
}

.spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message, .empty-message {
    text-align: center;
    padding: 50px;
    color: #666;
    font-size: 18px;
}
.error-message{
    color: red;
}
.retry-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.retry-button:hover {
    background: #2980b9;
}